package com.campus.customer.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class UserCouponVo {
    @ApiModelProperty(value = "用户优惠券表ID")
    private Long id;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("优惠券ID")
    private Integer couponId;

    @ApiModelProperty("状态：0-未生效，1-可用，2-已使用，3-已过期")
    private Integer status;

    @ApiModelProperty("使用时间")
    private LocalDateTime useTime;

    @ApiModelProperty("使用订单ID")
    private String orderId;

    @ApiModelProperty("领取时间")
    private LocalDateTime createTime;

    @ApiModelProperty("优惠券名称")
    private String name;

    @ApiModelProperty("类型：1-满减券，2-折扣券")
    private Integer type;

    @ApiModelProperty("面值/折扣值")
    private BigDecimal value;

    @ApiModelProperty("最低消费")
    private BigDecimal minConsume;

    @ApiModelProperty("使用开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime useStartTime;

    @ApiModelProperty("使用结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime useEndTime;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("发行量")
    private Integer total;

    @ApiModelProperty("剩余数量")
    private Integer remain;

}
